---
# tasks file for firefox
- name: firefox package
  ansible.builtin.apt:
    name: firefox
    state: latest

- name: firefox locale
  ansible.builtin.apt:
    name: firefox-locale-ru
    state: latest

- name: firefox certificates directory
  ansible.builtin.file:
    path: /usr/lib/mozilla/certificates
    state: directory

- name: firefox certificates
  ansible.builtin.copy:
    src: "{{ item }}"
    dest: "/usr/lib/mozilla/certificates/{{ item }}"
  with_items:
  - russian_trusted_root_ca_pem.crt
  - russian_trusted_sub_ca_pem.crt
  - squidCA.crt

- name: firefox policies directory
  ansible.builtin.file:
    path: /etc/firefox/policies
    state: directory

- name: firefox policies
  ansible.builtin.copy:
    src: policies.json
    dest: /etc/firefox/policies/policies.json
